@extends('layouts.app')

@section('content')
<div class="container">


    <div class="row">
<table class="table">
  <thead class="thead-light">
    <tr>     
      <th scope="col">主机名/mac地址</th>
      <th scope="col">用户</th>
      <th scope="col">远程连接</th>
      <th scope="col">到期时间</th>
      <th scope="col">创建/更新</th>
    </tr>
  </thead>
  <tbody>
	@foreach ($computers as $computer)
	<tr>
		<td><a href="{{ route('computers.edit',['computer'=>$computer->id]) }}">{{ $computer->name }}<br/>{{ $computer->mac }}</a></td>
		<td>{{ $computer->people }}</td>
		<td>{{ $computer->remote }}</td>
		<td>{{ $computer->expiredDate }}</td>
		<td>{{ $computer->created_at }}<br/>{{ $computer->updated_at }}</td>
	</tr>      
    @endforeach
</tbody>
</table>

    </div>

    {{ $computers->links('vendor.pagination.bootstrap-4') }}

</div>
@endsection
